import request from "../utils/request";

const api_name = '/admin/cmn/dict'

//根据dictCode获取下级节点
export function findByDictCode(dictCode) {
  return request({
    url: `${api_name}/findByDictCode/${dictCode}`,
    method: 'GET',
  })
}

//根据id获取下级节点
export function findByParentId(parentId) {
  return request({
    url: `${api_name}/findChildData/${parentId}`,
    method: 'GET'
  })
}
